package com.工厂模式.simple;

public class VarCar extends AbstractCar{


    public VarCar (){
        engine="单杠发动机";
        name="货车";
    }

    @Override
    public void run() {
        System.out.println(name+">>>>>"+engine+"发动，声音--哒哒哒");
    }
}
